# -*- coding: utf-8 -*-
#字符串 异常处理
try:
    name = raw_input("Please give me your name:")
    num = int(raw_input("Hoe many widgets are you buying:"))
    price = float(raw_input("How much do they cost,per item:"))
    total = num * price
    print("your total is ${}".format(total))
    print("Thanks for shopping with us today, {}!".format(name))
except:
    print("input has error")
